
import { Message } from 'element-ui'

export const initColumns = search => {
    const columns = [
        {
            el: 'str-input',
            label: '项目名',
            value: 'name',
            option: {
                width: '200px',
                placeholder: "请输入项目名"
            }
        }, {
            el: 'str-input',
            label: '主管',
            value: 'user_name',
            option: {
                width: '200px',
                placeholder: "请输入项目名"
            }
        },
        {
            el: 'iv-button',
            option: {
                text: "搜索",
                func: search,
            },
            style: { 'margin-left': '30px' }
        }
    ]
    return columns;
}